
function onClickCancelAccountNo(eventObject) {
    location.href = '/Trabalho_PD/useraccountconfiguration.html';
}

function onClickCancelAccountYes(eventObject) {
    var goodByeMessage = $("#goodByeMessage").val();
    if(!goodByeMessage) {
        goodByeMessage = ' ';
    }
    
    sendCancelAccount(goodByeMessage, function(data) {
       if(data["success"]) {
           location.href = '/Trabalho_PD/homepage.html';
       } 
    });
}


